<div class="tms-main-page-function">
    <div class="main-content" style="height:auto">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
                <a ng-href="{{exportSrc}}">
                    <button class="layui-btn" ng-click="export()">导出</button>
                </a>
                <!--<button class="layui-btn" ng-click="errorDepartureClick()">异常离场</button>-->
                <!--<button class="layui-btn" ng-click="normalDepartureClick()">正常离场</button>-->
            </ul>
            <div class="wms-wbm-fun-right">
                <!--<input type="text" placeholder="VIN码&ndash;&gt;回车查询" ng-model="search.vdVin" ng-keydown="searchListKeyDown($event)" class="search-input">-->
                <button class="layui-btn" ng-click="moreClick()" ng-bind="moreText">更多条件</button>
                <i class="iconfont icon-shuaxin layui-anim layui-anim-loop layui-anim-rotate wms-refresh" ng-click="refreshClick()" refresh></i>
            </div>
        </div>
        <div class="otherForm" ng-show="otherForm" >
            <ul>
                <li>
                    <div class="otherFormItem">
                        <div>车牌号</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.vehicle"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>开闸类型</div>
                        <div>
                            <ui-select ng-model="search.departureType">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="openGateStatus in openGateList">
                                    <span ng-bind="openGateStatus.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>

                    <div class="otherFormItem">
                        <div>进出场类型</div>
                        <div>
                            <ui-select ng-model="search.departureInOutType">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="departureType in outorInList">
                                    <span ng-bind="departureType.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem">
                        <div>登记时间从</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.startDeparturTime" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>至</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.endDepartureTime" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem otherFormItemButton">
                        <button class="layui-btn" ng-click="searchClick()">查询</button>
                        <button class="layui-btn" ng-click="resetClick()">重置</button>
                    </div>
                </li>
            </ul>
        </div>
        <div class="layui-form">
            <table class="layui-table wms_wbm_main_table minScreen serial scooterOffRegistrationTable">
                <tbody>
                    <tr>
                        <th>
                            <input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose">
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </th>
                        <th>车牌号</th>
                        <th>开闸类型</th>
                        <th>进/出 场类型</th>
                        <th>异常登记原因</th>
                        <th>登记时间</th>
                        <th>操作</th>
                    </tr>
                    <tr ng-repeat="scooterOffRegistration in scooterOffRegistrationList" repeat-finish="" ng-click="Tools.initTableClick($event)">
                        <td>
                            <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary" />
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </td>
                        <td ng-bind="scooterOffRegistration.drVehiclePlate"></td>
                        <!--<td ng-bind="scooterOffRegistration.drOpenStatus | openGateStatusFilter"></td>-->
                        <td ng-bind="scooterOffRegistration.drDepartureType | departureTypeFt"></td>
                        <td ng-bind="scooterOffRegistration.inOutType | departureOutInTypeFt"></td>
                        <td ng-bind="scooterOffRegistration.drDepartureReason"></td>
                        <td ng-bind="scooterOffRegistration.drDepartureTime"></td>
                        <td>
                            <button class="layui-btn" ng-show="scooterOffRegistration.drDepartureType | isOpenGateFail" ng-click="openGate(scooterOffRegistration.drId,scooterOffRegistration.inOutType)">开启</button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page" style="text-align: center;">
            <div id="pages" class="page">
            </div>
        </div>
    </div>
</div>